package wxb.avalon.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wxb
 * @since 2022-01-11
 */
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String roomNo;

    private Integer players;

    private Integer createPlayerId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }
    public Integer getPlayers() {
        return players;
    }

    public void setPlayers(Integer players) {
        this.players = players;
    }

    public Integer getCreatePlayerId() {
        return createPlayerId;
    }

    public void setCreatePlayerId(Integer createPlayerId) {
        this.createPlayerId = createPlayerId;
    }

    @Override
    public String toString() {
        return "Room{" +
            "id=" + id +
            ", roomNo=" + roomNo +
            ", players=" + players +
        "}";
    }
}
